package org.flhy.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


@Configuration
public class ResourcesConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
    /*    registry.addResourceHandler("/CodeMirror/**").addResourceLocations("classpath:/CodeMirror/");
        registry.addResourceHandler("/ext3/**").addResourceLocations("classpath:/ext3/");
        registry.addResourceHandler("/js/**").addResourceLocations("classpath:/js/");
        registry.addResourceHandler("/mxgraph2/**").addResourceLocations("classpath:/mxgraph2/");*/
        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
//        registry.addResourceHandler("/ui/**").addResourceLocations("classpath:/ui/");
        registry.addResourceHandler("/org/flhy/webapp/controller/**").addResourceLocations("classpath:/org/flhy/webapp/controller/");
        
    }
}
